Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

newdevice: initial proxmox detection #7543

Merged
merged 4 commits into from Oct 27, 2017
Merged

Conversation

tomarch
Copy link
Contributor

@tomarch tomarch commented Oct 25, 2017

Dectect PROXMOX host

DO NOT DELETE THIS TEXT

Please note

Please read this information carefully. You can run ./scripts/pre-commit.php to check your code before submitting.

Testers

If you would like to test this pull request then please run: ./scripts/github-apply <pr_id>, i.e ./scripts/github-apply 5926

processor_stacked: 1
discovery:
- sysDescr_regex:
- '/PVE/'
Copy link
Member

@murrant murrant Oct 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't need to be a regex. You are just searching for PVE anywhere in the sysDescr.

I would probably do this so it match both sysObjectId and sysDescr

discovery:
    -
        sysObjectId:
            - .1.3.6.1.4.1.8072.3.2.10
        sysDescr:
            - PVE

@murrant
Copy link
Member

murrant commented Oct 25, 2017

The os icon should be squarish. Move the current svg you have to the logos directory and extract the left symbol for this os icon.

You should also optimize your svg: https://docs.librenms.org/#Developing/os/Initial-Detection/#icon-and-logo

discovery:
- sysObjectId:
- .1.3.6.1.4.1.8072.3.2.10
- sysDescr:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong, it means match either sysObjectID or sysDescr. You need to have them in the same array (-).
Reply…

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry. Should be fixed now.

sysObjectId:
- .1.3.6.1.4.1.8072.3.2.10
sysDescr:
- PVE
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think to be 100% safe here it might be better to do:

sysDescr_regex:
    - '/ PVE /'

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@laf just a note, this didn't need to be a regex - ' PVE ' works too

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point

@scrutinizer-notifier
Copy link

The inspection completed: No new issues

@laf laf merged commit db3d9dc into librenms:master Oct 27, 2017
@lock
Copy link

lock bot commented May 17, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed.

@lock lock bot locked as resolved and limited conversation to collaborators May 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants